package com.yangrui.controller;

import com.yangrui.entity.Name;
import com.yangrui.service.NameService;
import com.yangrui.service.NameServiceImpl;
import org.junit.Test;

import java.util.ArrayList;
import java.util.Date;

public class NameController {

    private  NameService service = new NameServiceImpl();

    @Test
    public void findAll(){
        ArrayList<Name> list = service.findAll();
        for (Name name: list){
            System.out.println(name);
        }
    }

    @Test
    public void update(){
        System.out.println(service.updatePinyin());
    }
}
